package com.practice.share.service.impl;

import com.practice.share.basemapper.SameService;
import com.practice.share.mapper.ReplayMessageMapper;
import com.practice.share.model.pojo.ReplayMessage;
import com.practice.share.service.ReplayMessageOperationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ReplayMessageOperationServiceImpl extends SameService<ReplayMessage> implements ReplayMessageOperationService {

    @Resource
    private ReplayMessageMapper replayMessageMapper;

    public List<ReplayMessage> getReplayContent(Integer commentId) {

        return replayMessageMapper.getReplayContent(commentId);

    }

    /**
     * 获取回复的人
     */
    public ReplayMessage getReplayMessage(Integer replayId) {
        return replayMessageMapper.getReplayMessage(replayId);
    }
}
